/**
 * @Description:
 * @Author: saqqdy
 * @LastEditors: saqqdy
 * @Date: 2021-07-18 00:39:35
 * @LastEditTime: 2021-07-18 12:01:24
 * @see https://github.com/postcss/postcss
 */
import { isProd } from '../utils/env'
import { arrayFilterEmpty } from '../utils/helpers'

module.exports = () => {
    const plugins = arrayFilterEmpty(['autoprefixer', isProd ? 'cssnano' : null])
    return {
        plugins
    }
}
